package com.example.speeddating.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.speeddating.common.BaseResponse;
import com.example.speeddating.entity.Message;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;

/**
 *
 * @author tina
 * @since 2023-06-28 11:14:33
 */
public interface MessageService extends IService<Message> {

    Page<Message>  selectMessageList(Long id, int pageNum, int pageSize);

    Page<Message> selectMessageRecords(Long from, Long to, int pageNum, int pageSize);

    void addMessage(Message message);

    void updateUnreadMessage(Long from, Long id);

    HashMap<String, Object> getUnreadMessage(Long id);

    void deleteConversation(Long id, Long userId);
}
